package com.yaolisheng.poetryandode.common.utils;

import org.pegdown.Extensions;
import org.pegdown.PegDownProcessor;

/**
 * @author yaolisheng
 * @version 1.0
 * @date 2021/6/5 20:57
 */

public class MDUtil {

    private final static PegDownProcessor md = new PegDownProcessor(Extensions.ALL);

    public static String pegDown(String content) {

        return md.markdownToHtml(content);
    }
}
